package cn.com.gzqd.serviceimpl;

import java.util.List;

import cn.com.gzqd.daoimpl.BookDaoImpl;
import cn.com.gzqd.model.Book;
import cn.com.gzqd.service.BookService;


public class BookServiceImpl implements BookService {

	@Override
	public boolean Create(Book book) throws Exception {
		BookDaoImpl sdi=new BookDaoImpl();
		return  sdi.Create(book);
	}

	@Override
	public boolean Update(Book book) throws Exception {
		BookDaoImpl sdi=new BookDaoImpl();
		boolean s=sdi.Update(book);
		return  s;
	}

	@Override
	public boolean Delete(Book book) throws Exception {
		BookDaoImpl sdi=new BookDaoImpl();
		return  sdi.Delete(book);
	}

	@Override
	public List<Book> findAll(String keyWord) throws Exception {
		BookDaoImpl sdi=new BookDaoImpl();
		List<Book>all=null;
		all=sdi.findAll(keyWord);
		return all;
	}

	

}
